<template>
  <el-container>
    <el-header>
      <common-header></common-header>
    </el-header>
    <el-main class="main">
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script>
import CommonHeader from "../components/CommonHeader.vue";
export default {
//   mounted: function () {
//       this.optionCardClose();
//   },
  components: {
    CommonHeader,
  },
  data() {
    return {};
  },
  methods: {
    changeNav() {
      console.log("changeNav()方法执行");
      var path = this.$route.path;
      console.log("path = " + path);
      // var endIndex = path.lastIndexOf('\/')
      // var currNav = path.substring(endIndex+1, path.length)
      // console.log('currNav = '+ currNav)
      this.data.activeIndex = path;
    },
  },
};
</script>

<style>
.el-container {
  height: 100%;
}
.el-header {
  padding: 0;
}
.main {
  padding: 0;
  height: 100%;
}
</style>
